﻿using DomainEventDemo.PlanLogs;
using DomainEventDemo.Plans;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;

namespace DomainEventDemo.EntityFrameworkCore
{
    [ConnectionStringName("Default")]
    public class PlaningDomainEventDemoDbContext : AbpDbContext<PlaningDomainEventDemoDbContext>
    {
        public DbSet<Plan> Plans { get; set; }
        public DbSet<PlanLog> PlanLogs { get; set; }

        public PlaningDomainEventDemoDbContext(DbContextOptions<PlaningDomainEventDemoDbContext> options)
            : base(options)
        {

        }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
            PlaningDomainEventDemoDbContextModelCreatingExtensions.ConfigureDomainEventDemo(builder);
        }
    }
}
